package cn.torna.example.common;

/**
 * @author thc
 */
public enum ErrorCodeEnum {
    GOODS_NOT_EXIST("10001", "商品不存在"),
    CATEGORY_NOT_EXIST("10002", "分类不存在"),
    GOODS_OFF("10003", "商品已下架"),
    GOODS_AMOUNT_ZERO("10004", "商品已售罄"),
    GOODS_NO_DUPLICATE("10005", "商品编码重复"),
    ;

    ErrorCodeEnum(String code, String message) {
        this.code = code;
        this.message = message;
    }

    private final String code;
    private final String message;


    public String getCode() {
        return code;
    }

    public String getMessage() {
        return message;
    }
}
